package com.example.edu.controller;

import com.example.edu.bean.ExamPageBean;
import com.example.edu.service.ExamService;
import com.example.edu.util.DateFormatUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ExamController {

    @Autowired
    private ExamService examService;

    @RequestMapping("/gep")
    public String getExamPage(@RequestParam(value = "date", defaultValue = "0") String date) {
        if (date.equals("0") ) {
            date = "2024-07-08";
        }
        List<ExamPageBean> examPageBeans = examService.selectExamPage(date);

        return "aaa";
    }

}
